import {get, post, del, put} from "@/apis/http/request";
import {DepressQuestion} from "@/apis/model/depress/DepressQuestionModel";

/**
* 得到列表
* @param params
*/
export const getDepressQuestionList = (params: any) => get("/depressQuestion/list", params)

/**
* 得到分页列表
* @param params
*/
export const depressQuestionPage = (params: any) => post("/depressQuestion/page", params)


/**
 * 保存数据
 * @param params
 */
export const saveOrUpdateAll = (params: any) => post("/depressQuestion/saveOrUpdateAll", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteDepressQuestionById = (id: number) => del("/depressQuestion/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertDepressQuestion = (param: DepressQuestion) => post("/depressQuestion", param)

/**
* 更新数据
* @param param
*/
export const updateDepressQuestion = (param: DepressQuestion) => put("/depressQuestion", param)